package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.StoreAnnouncementDao;
import com.cutePet.pet.domain.StoreAnnouncementDO;
import com.cutePet.pet.service.StoreAnnouncementService;



@Service
public class StoreAnnouncementServiceImpl implements StoreAnnouncementService {
	@Autowired
	private StoreAnnouncementDao storeAnnouncementDao;
	
	@Override
	public StoreAnnouncementDO get(Long storeAnnouncementId){
		return storeAnnouncementDao.get(storeAnnouncementId);
	}
	
	@Override
	public List<StoreAnnouncementDO> list(Map<String, Object> map){
		return storeAnnouncementDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return storeAnnouncementDao.count(map);
	}
	
	@Override
	public int save(StoreAnnouncementDO storeAnnouncement){
		return storeAnnouncementDao.save(storeAnnouncement);
	}
	
	@Override
	public int update(StoreAnnouncementDO storeAnnouncement){
		return storeAnnouncementDao.update(storeAnnouncement);
	}
	
	@Override
	public int remove(Long storeAnnouncementId){
		return storeAnnouncementDao.remove(storeAnnouncementId);
	}
	
	@Override
	public int batchRemove(Long[] storeAnnouncementIds){
		return storeAnnouncementDao.batchRemove(storeAnnouncementIds);
	}
	
}
